package com.shutong.edu.invoke.retry.processor;

import com.shutong.edu.invoke.retry.model.RetryInfo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 *
 * @ClassName: AopRetryProcessor.java
 * @author: Naughty Guo
 * @date: Jun 2, 2016
 */
public class AopRetryProcessor extends AbstractRetryProcessor {

    private static final Logger LOGGER = LoggerFactory.getLogger(AopRetryProcessor.class);

    @Override
    protected Object doInvoke(RetryInfo retryInfo) throws Throwable {
        return retryInfo.getProceedingJoinPoint().proceed(retryInfo.getArguments());
    }
}
